<template>
  <div id="app">
    <router-view v-if="isRouterAlive" />
  </div>
</template>

<script>
export default {
  name: 'App',
  provide() {
    return {
      reload: this.reload
    };
  },
  data() {
    return {
      isRouterAlive: true
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(() => {
        this.isRouterAlive = true;
      });
    }
  }
};
</script>

<style lang="scss">
body{
  // overflow-y: scroll !important;
  overflow: hidden;
}
.container-page {
  padding: 20px;
}
.el-image-viewer__canvas{
  user-select: none;
}
*:not([input]){
  user-select: none;
}
</style>
